﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SupplierConsulta.aspx.cs" Inherits="NewTierra.Pages.SupplierConsulta" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <link rel="shortcut icon" href="../../images/Icones/favicon.ico" type="image/x-icon" />

    <link href="../../Styles/jquery_notification.css" rel="stylesheet" />

    <link href="../../Styles/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.11.0.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-ui-1.10.0.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <link href="~/Styles/EstiloGeral.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
        #supplier
        {
            height: auto;
            width: 1330px;
            margin-top: 5px;
            margin-left: 5px;
            margin-right: 5px;
        }

        #TabSuppliers
        {
            height: 800px;
            width: 1330px;
        }

        #SupplierForm
        {
            width: 660px;
            height: 724px;
            float: left;
        }

            #SupplierForm .SuppEsq
            {
                float: left;
                width: 329px;
                height: 559px;
            }

            #SupplierForm .SuppDir
            {
                float: left;
                width: 308px;
                height: 546px;
                margin-left: 0px;
            }

            #SupplierForm .FiltrosSupplier
            {
                border: 1px solid #999;
                margin-bottom: 5px;
                padding: 10px;
                background-color: #EEE;
                height: auto;
                background: #FAFAFA;
                color: #666;
                width: 628px;
            }

        .BotoesSupplier
        {
            width: 100%;
            float: left;
        }

        .SetSupplier
        {
            height: auto;
            float: left;
            width: auto;
            border: 1px solid #d9d9d9;
        }

            .SetSupplier .form_titulo
            {
                height: 40px;
                font-size: 22px;
                font-family: Arial;
                color: #000;
                text-align: center;
                line-height: 40px;
                background: rgb(242,249,254); /* Old browsers */
                background: -moz-linear-gradient(top, rgba(242,249,254,1) 0%, rgba(214,240,253,1) 100%); /* FF3.6+ */
                background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,249,254,1)), color-stop(100%,rgba(214,240,253,1))); /* Chrome,Safari4+ */
                background: -webkit-linear-gradient(top, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* Chrome10+,Safari5.1+ */
                background: -o-linear-gradient(top, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* Opera 11.10+ */
                background: -ms-linear-gradient(top, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* IE10+ */
                background: linear-gradient(to bottom, rgba(242,249,254,1) 0%,rgba(214,240,253,1) 100%); /* W3C */
                filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f9fe', endColorstr='#d6f0fd',GradientType=0 ); /* IE6-9 */
            }

            .SetSupplier .form_into
            {
                width: 650px;
                height: 410px;
                padding: 5px;
                background: #fff;
                margin-bottom: 10px;
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
            }

        #SetBases
        {
            background-color: #fff;
            border-radius: 10px;
        }

        #SetInfos
        {
            background-color: #fff;
            border-radius: 10px;
            width: 1025px;
        }

        #Tarifas
        {
            height: 589px;
            width: 617px;
            float: left;
            margin-left: 5px;
        }

        #SetTarifas
        {
            height: 526px;
            background-color: #fff;
            border-radius: 10px;
        }

        #GridsTarifas
        {
            height: 409px;
            margin-top: 10px;
            width: 593px;
        }

        .GridTarifasPeriodo
        {
            width: 593px;
            float: left;
            height: 200px;
        }

        .GridTarifasPeriodoBlackout
        {
            width: 589px;
            float: left;
            height: 162px;
        }

        .GridTarifasPorPeriodo
        {
            width: 349px;
            height: 161px;
            float: left;
        }


        .GridTarifasPorPeriodoMeal
        {
            width: 230px;
            float: left;
            height: 162px;
        }


        #PopAddPeriodo
        {
            width: 428px;
        }


        .AddPeriodoEsq
        {
            height: 160px;
            float: left;
            width: 188px;
        }

        .AddPeriodoDir
        {
            width: 234px;
            float: left;
            height: 160px;
        }

        #PopAddPeriodoBlack
        {
            width: 559px;
        }

        .AddPeriodoBlackEsq
        {
            width: 235px;
            float: left;
            height: 170px;
        }

        .AddPeriodoBlackDir
        {
            width: 317px;
            float: left;
            height: 171px;
        }

        #PopAddTarifa
        {
            width: 627px;
        }

        .PopAddTarifa
        {
            width: 272px;
            float: left;
            height: 359px;
        }


        .PopAddTarifaDir
        {
            height: 359px;
            width: 352px;
            float: left;
        }

        .containerGridPeriodos
        {
            width: 591px;
            height: 165px;
            background-color: #fff;
            overflow: auto; /* showing scrollbars */
        }

        .containerGridBlackout
        {
            width: 465px;
            height: 147px;
            background-color: #fff;
            overflow: auto; /* showing scrollbars */
        }

        #Infos
        {
            height: 600px;
        }

        .addInfoLong
        {
            height: 370px;
            width: 930px;
            margin-top: 5px;
        }

        .addInfoShort
        {
            height: 370px;
            width: 930px;
            margin-top: 5px;
        }

        .addInfoOperador
        {
            width: 446px;
            height: 190px;
            margin-top: 5px;
            float: left;
        }

        .AddInfoCliente
        {
            margin-top: 5px;
            height: 195px;
            width: 441px;
            float: left;
        }

        .AddInfoVoucher
        {
            margin-top: 15px;
            height: 153px;
            width: 886px;
            float: left;
        }

        .btnDescricao
        {
            height: 40px;
            width: 775px;
            margin-top: 23px;
        }

        .AddInfoVoucher
        {
            height: 82px;
        }

        #FiltrosSupplierDrops
        {
            margin-top: 10px;
            height: 52px;
        }

            #FiltrosSupplierDrops .DropTipoSuplierFiltro
            {
                width: 180px;
                float: left;
            }

            #FiltrosSupplierDrops .DropStatusSuplierFiltro
            {
                width: 119px;
                float: left;
            }

            #FiltrosSupplierDrops .DropCidadeSuplierFiltro
            {
                width: 321px;
                float: left;
            }

        .SupplierFormularioCrud
        {
            width: 639px;
            height: 604px;
            padding: 5px;
            display: inline;
            float: left;
            position: relative;
            border: 1px solid #E6E6E6;
            background: #f9f9f9;
            color: #666;
        }

        #bases
        {
            height: 488px;
            padding: 10px;
        }

        .bases_filtros
        {
            width: 881px;
            height: 74px;
        }

            .bases_filtros .bases_filtros_drops
            {
                float: left;
                width: 160px;
                height: 53px;
                padding: 5px;
            }

        .bases_addbases
        {
            height: 384px;
            width: 1267px;
        }

            .bases_addbases .bases_addbases_add
            {
                width: 101px;
                float: left;
                padding: 5px;
                height: 87px;
            }

            .bases_addbases .bases_addbases_grid
            {
                width: 151px;
                float: left;
                height: 355px;
                padding: 5px;
                overflow-y: auto;
                overflow-x: hidden;
            }

            .bases_addbases .resumoBases
            {
                float: left;
                width: 520px;
                height: 326px;
                overflow: auto;
            }

        .telefonePL_FAX
        {
            width: 284px;
            height: 42px;
        }

            .telefonePL_FAX .telefone_pl
            {
                float: left;
                width: 149px;
            }

            .telefonePL_FAX .telefone_fax
            {
                float: left;
                width: 134px;
                height: 38px;
            }

        .ModalInto
        {
            overflow-x: auto;
            overflow-y: auto;
            width: 1250px;
            height: auto;
        }

        .ModalPopupBG
        {
            background-color: gray;
            filter: alpha(opacity=60);
            opacity: 0.7;
        }

        .ModalPopup
        {
            background-color: #fff;
            border-width: 1px;
            border-style: solid;
            border-color: #E6E6E6;
            padding: 3px;
            width: auto;
        }

        .aminitiesOptions
        {
            float: left;
            margin-top: 20px;
            margin-left: 20px;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid #ccc;
            height: auto;
            width: auto;
        }

        .TabAmenities
        {
            height: 360px;
        }

        .TabGroupAmenities
        {
            float: left;
            margin-top: 20px;
            width: 300px;
            overflow: auto;
        }

        .headerCriarReport
        {
            height: 40px;
            float: left;
            width: 100%;
            background-color: #E6E6E6;
            line-height: 30px;
        }

        .divsAmenities
        {
            height: 320px;
            overflow-x: hidden;
            overflow-y: auto;
        }
    </style>

</head>
<body>

    <script type="text/javascript">

        jQuery(function ($) {
            $.datepicker.regional['pt-BR'] = {
                closeText: 'Fechar',
                prevText: '&#x3c;Anterior',
                nextText: 'Pr&oacute;ximo&#x3e;',
                currentText: 'Hoje',
                monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
             'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
                monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
             'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
                dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
                dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                weekHeader: 'Sm',
                dateFormat: 'dd/mm/yy',
                firstDay: 0,
                isRTL: false,
                showMonthAfterYear: false,
                yearSuffix: ''
            };
            $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
        });

        function jScript() {
            $("#txtfromReport").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#txttoReport").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#txttoReport").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#txtfromReport").datepicker("option", "maxDate", selectedDate);
                }
            });

        }

        $(document).ready(function () {

            $("#tabs").tabs();

            $("#periodosBlack").dialog({ modal: true, autoOpen: false, width: 480 });

            $("#btnshowPerBlack").click(function () {
                $("#periodosBlack").dialog("open");
            });

            $(".botao").button();

        });

        function AbrirPopUp(url, title, w, h) {
            var left = (screen.width / 2) - (w / 2);
            var top = (screen.height / 2) - (h / 2);
            return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left + '');
        }

        function CallServerSupplier() {
            document.getElementById('<%= btnFiltroNomeSupplier.ClientID %>').click();
        }

        function OpenInfos(siteInfos) {
            var home = siteInfos;
            javascript: window.open(home);
        }

        function ShowIcon() {
            var e = document.getElementById("processing");
            e.style.visibility = (e.style.visibility == 'visible') ? 'hidden' : 'visible';
        }

    </script>

    <form id="formulario" runat="server">

        <asp:ScriptManager ID="ScriptManagerSupplier" runat="server">
        </asp:ScriptManager>

        <div class="bgHeader">

            <div class="bgHeader_into">

                <asp:ImageButton ID="ImgVoltarMenu" runat="server" ImageUrl="~/images/Icones/iconeMenu2.png" OnClick="VoltarMenu" ToolTip="Menu" />

            </div>

            <div class="bgHeader_into">

                <asp:Label ID="lblSupplierHeader" runat="server" Text="Supplier" CssClass="titulo" />

            </div>

        </div>

        <div id="supplier">

            <script type="text/javascript">
                function showAutoCloseMessage(MsgsExc) {
                    showNotification({
                        message: MsgsExc,
                        autoClose: true,
                        type: "success",
                        duration: 5
                    });
                }
            </script>

            <br />

            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">List</a></li>
                    <li><a href="#tabs-2">Infos</a></li>
                    <li><a href="#tabs-3">Bases</a></li>
                    <li><a href="#tabs-4">Tarifas</a></li>
                </ul>

                <div id="tabs-1">

                    <asp:UpdatePanel ID="UpdatePanelTabList" UpdateMode="Conditional" runat="server">
                        <Triggers>
                            <asp:PostBackTrigger ControlID="btnEmiteReport" />
                        </Triggers>
                        <ContentTemplate>

                            <script type="text/javascript" language="javascript">
                                Sys.Application.add_load(jScript);
                            </script>

                            <div id="TabSuppliers">

                                <div id="SupplierForm">

                                    <div class="SetSupplier">

                                        <div class="form_titulo">
                                            Supplier
                                            <asp:Label ID="lblTituloNomeSupplier" runat="server" Text="" ForeColor="Gray" />
                                        </div>

                                        <div class="form_into">

                                            <div class="FiltrosSupplier radius">

                                                <div class="FiltrosSupplier_into_search">

                                                    <asp:TextBox ID="txtSupplier" runat="server" placeholder="Informe o nome/endereço do supplier." Width="340px" MaxLength="50"></asp:TextBox>
                                                    <img id="processing" alt="load" style="visibility: hidden" src="../../images/ajax-loader.gif" />
                                                </div>

                                                <div class="FiltrosSupplier_into_btn">

                                                    <input id="btnShowVerSuppliers" class="btnGeralAzul" onclick="AbrirPopUp('VerTodosSuppliers.aspx', 'Suppliers', '900', '600')" type="button" value="Lista" />

                                                    <asp:Button ID="btnEmitirRelatorioGeral" runat="server" Text="Report" CssClass="btnGeralAzul" Visible="true" />

                                                    <%--<a href="javascript:showDiv()"><img alt="" src="../../images/Icones/iconFilter.png" /></a> --%>

                                                    <asp:Button ID="btnFiltroNomeSupplier" Style="display: none" runat="server" OnClick="CarregarSuppliersNome" Text="" />
                                                    <asp:ImageButton ID="btnImgFilter" runat="server" ImageUrl="~/images/Icones/iconFilter.png" OnClick="btnImgFilter_Click" />

                                                </div>

                                                <asp:Panel ID="PanelReport" runat="server" CssClass="ModalPopup" Style="display: none; width: 450px; height: 400px; overflow-x: auto; overflow-y: auto;">

                                                    <div class="headerCriarReport">

                                                        <table>
                                                            <tr>
                                                                <td style="width: 480px; text-align: center; font-family: 'Trebuchet MS'; font-size: 15px;">Emitir relatório
                                                                </td>
                                                                <td style="width: 20px; text-align: center;">
                                                                    <asp:ImageButton ID="imgFecharModalReport" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Width="20px" Height="20px" />
                                                                </td>
                                                            </tr>
                                                        </table>

                                                        <table style="margin-top: 10px;">
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblFrom" runat="server" Text="Data From:"></asp:Label>
                                                                    <asp:TextBox ID="txtfromReport" runat="server" Width="100px" MaxLength="10"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
                                                                        ControlToValidate="txtfromReport" ErrorMessage="*"
                                                                        Font-Size="Small" ToolTip="Campo requerido." ValidationGroup="EmitirRelatorio">*</asp:RequiredFieldValidator>
                                                                </td>
                                                                <td>
                                                                    <asp:Label ID="lblTo" runat="server" Text="Data To:"></asp:Label>
                                                                    <asp:TextBox ID="txttoReport" runat="server" Width="100px" MaxLength="10"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                                        ControlToValidate="txttoReport" ErrorMessage="*" Font-Size="Small"
                                                                        ToolTip="Campo requerido." ValidationGroup="EmitirRelatorio">*</asp:RequiredFieldValidator>
                                                                </td>
                                                            </tr>
                                                        </table>

                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblPaisReport" runat="server" Text="País:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlPaisReport" runat="server" OnSelectedIndexChanged="ddlPaisReport_SelectedIndexChanged" AutoPostBack="true" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblCidadeReport" runat="server" Text="Cidade:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlCidadeReport" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblCambioReport" runat="server" Text="Moeda:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlCambioReport" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblMercadoReport" runat="server" Text="Mercado:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlMercadoReport" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblBaseTarifariaReport" runat="server" Text="Base Tarifaria:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlBaseTarifariaReport" runat="server" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblSupplierReport" runat="server" Text="Supplier:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlSupplierReport" runat="server" Width="250px" />
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblMarkupRelatorio" runat="server" Text="Mark up:"></asp:Label>
                                                                    <asp:TextBox ID="txtMarkupRelatorio" runat="server" Width="30px" MaxLength="10"></asp:TextBox>
                                                                </td>
                                                            </tr>

                                                        </table>
                                                        <table>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblFormatoRelatorio" runat="server" Text="Formato Relatório:"></asp:Label>
                                                                    <asp:DropDownList ID="ddlFormatoReport" runat="server">
                                                                        <asp:ListItem Value="1" Text="PDF" />
                                                                        <asp:ListItem Value="2" Text="Word" />
                                                                        <asp:ListItem Value="3" Text="Excel" />
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnEmiteReport" runat="server" Text="Emitir" CssClass="btnGeralAzul" OnClick="btnEmitirRelatorioGeral_Click" Visible="true" ValidationGroup="EmitirRelatorio" />
                                                                </td>
                                                            </tr>
                                                        </table>

                                                    </div>


                                                </asp:Panel>

                                                <asp:ModalPopupExtender
                                                    ID="ModalPopupExtenderReport"
                                                    runat="server"
                                                    BackgroundCssClass="ModalPopupBG"
                                                    CancelControlID="imgFecharModalReport"
                                                    DropShadow="false"
                                                    Enabled="True"
                                                    PopupControlID="PanelReport"
                                                    PopupDragHandleControlID="PopupHeader"
                                                    RepositionMode="None"
                                                    Drag="true"
                                                    TargetControlID="btnEmitirRelatorioGeral">
                                                </asp:ModalPopupExtender>


                                                <asp:RadioButtonList ID="RdoCompleteSupplier" runat="server" AutoPostBack="True"
                                                    RepeatDirection="Horizontal" OnSelectedIndexChanged="RdoCompleteSupplier_SelectedIndexChanged">
                                                    <asp:ListItem Value="0" Selected="True">Por Nome</asp:ListItem>
                                                    <asp:ListItem Value="1">Por Endereço</asp:ListItem>
                                                </asp:RadioButtonList>

                                                <ajaxToolkit:AutoCompleteExtender
                                                    ServiceMethod="SearchSuppliers"
                                                    MinimumPrefixLength="1"
                                                    CompletionInterval="100"
                                                    EnableCaching="False"
                                                    TargetControlID="txtSupplier"
                                                    OnClientPopulating="ShowIcon"
                                                    OnClientPopulated="ShowIcon"
                                                    ID="AutoCompleteExtender1" runat="server"
                                                    OnClientItemSelected="CallServerSupplier"
                                                    DelimiterCharacters=""
                                                    Enabled="True">
                                                </ajaxToolkit:AutoCompleteExtender>

                                                <div id="FiltrosSupplierDrops" style="display: <%=displayFiltro%>">

                                                    <div class="DropTipoSuplierFiltro">
                                                        <asp:Label runat="server" ID="lblTipoSupplierFiltroTXT" Text="Tipo Supplier:" />
                                                        <br />
                                                        <asp:DropDownList ID="DDTipoSupFiltro" OnSelectedIndexChanged="DDTipoSupFiltro_SelectedIndexChanged" runat="server"
                                                            AppendDataBoundItems="True" AutoPostBack="True">
                                                        </asp:DropDownList>
                                                    </div>

                                                    <div class="DropStatusSuplierFiltro">
                                                        <asp:Label runat="server" ID="lblStatusFiltroTXT" Text="Status:" /><br />
                                                        <asp:DropDownList ID="DDStatusFiltro" OnSelectedIndexChanged="DDStatusFiltro_SelectedIndexChanged" runat="server" AutoPostBack="True"
                                                            AppendDataBoundItems="True">
                                                        </asp:DropDownList>
                                                    </div>

                                                    <div class="DropCidadeSuplierFiltro">
                                                        <asp:Label runat="server" ID="lblCidadeFiltroTXT" Text="Cidade:" /><br />
                                                        <asp:DropDownList ID="ddlCidadeFiltro" OnSelectedIndexChanged="ddlCidadeFiltro_SelectedIndexChanged" runat="server" AutoPostBack="True"
                                                            AppendDataBoundItems="True">
                                                        </asp:DropDownList>
                                                    </div>

                                                </div>

                                            </div>

                                            <div class="SupplierFormularioCrud radius">
                                                <%--<h2 class="headline radius">
                                                <asp:Label ID="lblTituloNomeSupplier" runat="server" Text="" /></h2>--%>
                                                <div class="SuppEsq">

                                                    <asp:TextBox ID="txtCodigo" runat="server" Width="50px" Style="display: none;" ReadOnly="True" />

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblNomeSupplier" runat="server" Text="Nome:"></asp:Label><br />
                                                        <asp:TextBox ID="txtNome" MaxLength="50" runat="server" Width="300px" Style="font-weight: bold;" />
                                                        <asp:RequiredFieldValidator
                                                            ID="RqFieldNomeSupplier"
                                                            runat="server"
                                                            ControlToValidate="txtNome"
                                                            ErrorMessage="*"
                                                            CssClass="MsgErro"
                                                            ValidationGroup="Salvar"
                                                            ToolTip="Informe um nome."></asp:RequiredFieldValidator>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblRazaoSocialSupplier" runat="server" Text="Razão Social:"></asp:Label><br />
                                                        <asp:TextBox ID="txtRazaoSocial" MaxLength="50" runat="server" Width="300px" />
                                                        <%--<asp:RequiredFieldValidator 
                                                            ID="RqFieldRazaoSocial" 
                                                            runat="server" 
                                                            ControlToValidate="txtRazaoSocial" 
                                                            ErrorMessage="*" 
                                                            ValidationGroup="Salvar" ToolTip="Informe uma razão social."></asp:RequiredFieldValidator>--%>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblCNPJCPFSupplier" runat="server" Text="CNPJ/CPF:"></asp:Label><br />
                                                        <asp:TextBox ID="txtCnpjCpf" MaxLength="50" runat="server" Width="250px" />
                                                        <%--<asp:RequiredFieldValidator 
                                                            ID="RqFieldCnpj" 
                                                            runat="server" 
                                                            ControlToValidate="txtCnpjCpf" 
                                                            ErrorMessage="*" 
                                                            ValidationGroup="Salvar" ToolTip="Informe um cnpj/cpf."/>
                                                            <asp:RegularExpressionValidator 
                                                                ID="ReCnpj" 
                                                                runat="server" 
                                                                ErrorMessage="*"
                                                                ToolTip="Cnpj inválido."
                                                                ControlToValidate="txtCnpjCpf" ValidationGroup="Salvar"
                                                                ValidationExpression="(\d{3}\.\d{3}\.\d{3}\-\d{2}$)|(^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$)"/>--%>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblResponsavelSupplier" runat="server" Text="Responsável:"></asp:Label><br />
                                                        <asp:DropDownList ID="ddlResponsavel" runat="server" Width="200px">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblEnderecoSupplier" runat="server" Text="Endereço: "></asp:Label><br />
                                                        <asp:TextBox ID="txtEndereco" MaxLength="250" runat="server" Width="300px" TextMode="MultiLine" />
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblCepSupplier" runat="server" Text="Cep: "></asp:Label><br />
                                                        <asp:TextBox ID="txtCep" MaxLength="12" runat="server" Width="100px" />
                                                    </p>

                                                    <div class="telefonePL_FAX">
                                                        <div class="telefone_pl">
                                                            <asp:Label ID="lblTelefoneSupplier" runat="server" Text="Telefone:"></asp:Label><br />
                                                            <asp:TextBox ID="txtTelefone" MaxLength="20" runat="server" Width="120px" />
                                                            <%--<asp:RegularExpressionValidator
                                                            ID="ReTelefonePlantao"
                                                            runat="server"
                                                            ErrorMessage="*"
                                                            CssClass="MsgErro"
                                                            ControlToValidate="txtTelefonePL"
                                                            ToolTip="Telefone inválido"
                                                            ValidationGroup="Salvar"
                                                            ValidationExpression="[0-9+]{3} [0-9]{2} [0-9]{4}-[0-9]{4}" />--%>
                                                        </div>

                                                        <div class="telefone_fax">
                                                            <asp:Label ID="lblTelefoneFAXSupplier" runat="server" Text="Fax:"></asp:Label><br />
                                                            <asp:TextBox ID="txtFax" MaxLength="20" runat="server" Width="120px" />
                                                            <%--<asp:RegularExpressionValidator
                                                            ID="ReFax"
                                                            runat="server"
                                                            ErrorMessage="*"
                                                            CssClass="MsgErro"
                                                            ControlToValidate="txtFax"
                                                            ToolTip="Telefone inválido"
                                                            ValidationGroup="Salvar"
                                                            ValidationExpression="[0-9+]{3} [0-9]{2} [0-9]{4}-[0-9]{4}" />--%>
                                                        </div>

                                                    </div>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblTelefonePLSupplier" runat="server" Text="Telefone reservas/plantão:"></asp:Label><br />
                                                        <asp:TextBox ID="txtTelefonePL" MaxLength="20" runat="server" Width="120px" />
                                                        <%--<asp:RequiredFieldValidator 
                                                            ID="RqFieldTelefone" 
                                                            runat="server" 
                                                            ControlToValidate="txtTelefone" 
                                                            ErrorMessage="*" 
                                                            ValidationGroup="Salvar" ToolTip="Informe um telefone."/>--%>
                                                        <%--<asp:RegularExpressionValidator
                                                        ID="ReTelefone"
                                                        runat="server"
                                                        ErrorMessage="*"
                                                        CssClass="MsgErro"
                                                        ControlToValidate="txtTelefone"
                                                        ToolTip="Telefone inválido"
                                                        ValidationGroup="Salvar"
                                                        ValidationExpression="[0-9+]{3} [0-9]{2} [0-9]{4}-[0-9]{4}" />--%>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblSiteSupplier" runat="server" Text="Site:"></asp:Label><br />
                                                        <asp:TextBox ID="txtSite" MaxLength="300" runat="server" Width="300px" />
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblEmailSupplier" runat="server" Text="Email:"></asp:Label><br />
                                                        <asp:TextBox ID="txtEmail" MaxLength="50" runat="server" Width="300px" />
                                                        <asp:RegularExpressionValidator
                                                            ID="ReEmail"
                                                            runat="server"
                                                            ErrorMessage="*"
                                                            CssClass="MsgErro"
                                                            ToolTip="Email inválido."
                                                            ControlToValidate="txtEmail" ValidationGroup="Salvar"
                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                                                    </p>

                                                </div>

                                                <div class="SuppDir">

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblTipoSupSupplier" runat="server" Text="Tipo Supplier:"></asp:Label><br />
                                                        <asp:DropDownList ID="DDTipoSup" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DDTipoSup_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblCategoriaSupplier" runat="server" Text="Categoria:"></asp:Label><br />
                                                        <asp:DropDownList ID="ddlCategoriaEscrita" runat="server">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblRedeSupplier" runat="server" Text="Rede:"></asp:Label><br />
                                                        <asp:DropDownList ID="DDRede" runat="server">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblClassificacaoSupplier" runat="server" Text="Classificação:"></asp:Label><br />
                                                        <asp:DropDownList ID="DDClassificacao" runat="server">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblStatusSupplier" runat="server" Text="Status:"></asp:Label><br />
                                                        <asp:DropDownList ID="DDStatus" runat="server">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblPaisSupplier" runat="server" Text="País:"></asp:Label><br />
                                                        <asp:DropDownList ID="DDPais" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DDPais_SelectedIndexChanged">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblCidadeSupplier" runat="server" Text="Cidade:"></asp:Label><br />
                                                        <asp:DropDownList ID="DDCidade" runat="server">
                                                        </asp:DropDownList>
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:CheckBox ID="chkRecomended" runat="server" Text="Recomended" />

                                                        <br />
                                                        <br />
                                                        <asp:Label ID="lblFaturarSupplier" runat="server" Text="Faturar:"></asp:Label><br />
                                                        <asp:RadioButtonList ID="rdoFaturar" runat="server" RepeatDirection="Horizontal">
                                                            <asp:ListItem Value="Hotel" Text="Supplier" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Value="Responsavel" Text="Contratante"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                        <br />
                                                        <asp:Label ID="lblReservasSupplier" runat="server" Text="Reservas:"></asp:Label><br />
                                                        <asp:RadioButtonList ID="rdoReservas" runat="server" RepeatDirection="Horizontal">
                                                            <asp:ListItem Value="Hotel" Text="Supplier" Selected="True"></asp:ListItem>
                                                            <asp:ListItem Value="Responsavel" Text="Contratante"></asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </p>

                                                    <fieldset style="width: 271px">
                                                        <legend>Política de Grupo</legend>

                                                        <div class="telefonePL_FAX">

                                                            <div class="telefone_pl">
                                                                <asp:Label ID="lblPessoaApt" runat="server" Text="Pessoa/Apartamento:"></asp:Label><br />
                                                                <asp:DropDownList ID="ddlPessoaApt" runat="server">
                                                                    <asp:ListItem Value="0" Selected="True" Text="Selecione..." />
                                                                    <asp:ListItem Value="pessoa" Text="Por Pessoa" />
                                                                    <asp:ListItem Value="apartamento" Text="Por Apartamento" />
                                                                </asp:DropDownList>
                                                            </div>

                                                            <div class="telefone_fax">
                                                                <asp:Label ID="lblQtdPessoas" runat="server" Text="Qtd:"></asp:Label><br />
                                                                <asp:TextBox ID="txtQtdPessoas" MaxLength="4" runat="server" Width="30px" />
                                                            </div>

                                                        </div>

                                                    </fieldset>

                                                </div>

                                                <div class="BotoesSupplier">

                                                    <asp:Button ID="btnNovoSupplier" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="CadastrarSupplier" ValidationGroup="Salvar" />
                                                    <asp:Button ID="btnAtualizarSupplier" runat="server" OnClick="AtualizarSupplier" Text="Atualizar" CssClass="btnGeralAzul" ValidationGroup="Salvar" />
                                                    <asp:Button ID="btnExcluirSupplier" runat="server" OnClick="ExcluirSupplier" Text="Excluir" CssClass="btnGeralAzul" OnClientClick="return confirm('Excluindo esse supplier, todos os períodos e tarifas do mesmo também serão excluídas. Confirma?');" />
                                                    <asp:Button ID="btnLimparSupplier" runat="server" OnClick="btnLimparSupplier_Click" Text="Limpar" CssClass="btnGeralAzul" />

                                                </div>

                                                <asp:Label ID="lblMsgCadSupplier" runat="server" Font-Bold="True"></asp:Label>
                                            </div>

                                        </div>
                                    </div>

                                </div>

                                <div id="Tarifas">

                                    <fieldset id="SetTarifas">
                                        <legend>
                                            <h3>Tarifas</h3>
                                        </legend>

                                        <asp:Panel ID="PanelTarifas" runat="server" Visible="false" Width="599px">


                                            <div class="BotoesTarifas">

                                                <asp:Button ID="btnShowPeriodo" runat="server" CssClass="btnGeralAzul" Text="Períodos" OnClientClick="AbrirPopUp('AddPeriodo.aspx?Tipo=salvar', 'Periodo', '650', '420')" />
                                                <%--<input id="btnShowPeriodo" class="btnGeralAzul" onclick="AbrirPopUp('AddPeriodo.aspx?Tipo=salvar', 'Periodo', '650', '420')" type="button" value="Períodos" />--%>

                                                <asp:Button ID="btnshowPerBlack" runat="server" CssClass="btnGeralAzul" Text="Blackout" OnClientClick="AbrirPopUp('AddPeriodoBlack.aspx', 'Blackout', '450', '350')" />
                                                <%--<input id="btnshowPerBlack" class="btnGeralAzul" onclick="AbrirPopUp('AddPeriodoBlack.aspx', 'Blackout', '450', '350')" type="button" value="Blackout" />--%>
                                                <%--<input id="btnshowPerBlack" class="btnsGeral" type="button" value="Blackout" />--%>

                                                <asp:Button ID="btnShowCopiarTarifa" runat="server" CssClass="btnGeralAzul" Text="Copiar Tarifas" OnClientClick="AbrirPopUp('TarifasCopiar.aspx', 'CopiarTarifas', '400', '400')" />
                                                <%--<input id="btnShowCopiarTarifa" class="btnGeralAzul" value="Copiar Tarifas" onclick="AbrirPopUp('TarifasCopiar.aspx', 'CopiarTarifas', '400', '400')" type="button" />--%>

                                                <asp:Button ID="btnShowContatos" runat="server" CssClass="btnGeralAzul" Text="Contato" OnClientClick="AbrirPopUp('AddContatos.aspx', 'Contatos', '910', '340')" />

                                                <asp:Button ID="btnShowCondPag" runat="server" CssClass="btnGeralAzul" Text="Cond Pag" OnClientClick="AbrirPopUp('AddCondPag.aspx', 'Condição de Pagamento', '910', '380')" />

                                                <%--<input id="btnShowContatos" class="btnGeralAzul" value="Contato" onclick="AbrirPopUp('AddContatos.aspx', 'Contatos', '910', '340')" type="button" />--%>

                                                <%--<input id="btnShowCondPag" class="btnGeralAzul" value="Cond Pag" onclick="AbrirPopUp('AddCondPag.aspx', 'Condição de Pagamento', '910', '380')" type="button" />--%>

                                                <asp:Button ID="btnShowDescCateg" runat="server" CssClass="btnGeralAzul" Text="Categorias" OnClientClick="AbrirPopUp('AddDescCategoria.aspx', 'Descrição Categoria', '730', '320')" />
                                                <%--<input id="btnShowDescCateg" class="btnGeralAzul" value="Categorias" onclick="AbrirPopUp('AddDescCategoria.aspx', 'Descrição Categoria', '730', '320')" type="button" />--%>


                                                <%--<div id="periodosBlack" title="Periodos Black" style="display: none">

                                                    <iframe id="IFRAME1" src="AddPeriodoBlack.aspx" frameborder="0" scrolling="no"
                                                        border="0" cellspacing="0"
                                                        style="border-style: none; width: 437px; height: 350px; margin-left: 0px;"></iframe>

                                                </div>--%>

                                                <br />
                                                <br />
                                                <br />

                                                <asp:Label ID="lblFiltroMercadosTXT" runat="server" Text="Mercado: " />
                                                <asp:DropDownList ID="DropMercados" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropMercados_SelectedIndexChanged">
                                                </asp:DropDownList>

                                                <asp:Label ID="lblFiltroBaseTarifariaTXT" runat="server" Text="Base Tarifária: " />
                                                <asp:DropDownList ID="DropBaseTarifarias" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropBaseTarifarias_SelectedIndexChanged">
                                                </asp:DropDownList>

                                                <br />
                                                <br />

                                                <asp:Label ID="lblFiltroResponsavelTXT" runat="server" Text="Responsável: " />
                                                <asp:DropDownList ID="ddlResponsavelFiltroTarifas" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropBaseTarifarias_SelectedIndexChanged">
                                                </asp:DropDownList>

                                                <%--<asp:Button ID="btnAtualizarPeriodos" runat="server" Text="Atualizar Períodos" OnClick="CarregarDadosPeriodos" />--%>
                                            </div>

                                            <div id="GridsTarifas">



                                                <div class="GridTarifasPeriodo">

                                                    <asp:Label ID="lblGridPeriodosTXT" runat="server" Text="Períodos" />
                                                    <asp:ImageButton ID="btnAtualizarGridPeriodos" runat="server" ImageUrl="~/images/Icones/refresh-icon.png"
                                                        OnClick="AtualizaGridsPeriodo_PeriodoBlack" ToolTip="Atualizar Períodos" />

                                                    <asp:Button ID="btnOpenModals" runat="server" Text="" Style="display: none;" />

                                                    <asp:Panel ID="PanelAddTarifas" runat="server" CssClass="ModalPopup" Style="display: none; width: 1200px; height: 600px; overflow-x: auto; overflow-y: auto;">

                                                        <div class="ModalInto">
                                                            <asp:ImageButton ID="btnImgFecharModal" ToolTip="Fechar" runat="server" ImageUrl="../../images/Icones/close2.png" Width="20px" Height="20px" />

                                                            <iframe id="IFRAME3" src="AddTarif.aspx" frameborder="0" scrolling="no"
                                                                border="0" cellspacing="0"
                                                                style="border-style: none; width: 1250px; height: 900px; margin-left: 0px;"></iframe>
                                                        </div>

                                                    </asp:Panel>

                                                    <asp:ModalPopupExtender
                                                        ID="ModalPopupExtenderAddTarifa"
                                                        runat="server"
                                                        BackgroundCssClass="ModalPopupBG"
                                                        CancelControlID="btnImgFecharModal"
                                                        DropShadow="false"
                                                        Enabled="True"
                                                        PopupControlID="PanelAddTarifas"
                                                        PopupDragHandleControlID="PopupHeader"
                                                        RepositionMode="None"
                                                        Drag="true"
                                                        TargetControlID="btnOpenModals">
                                                    </asp:ModalPopupExtender>

                                                    <div class="containerGridPeriodos">

                                                        <asp:GridView ID="GridTarifasPeriodo" runat="server" OnRowCreated="GridTarifasPeriodo_RowCreated"
                                                            AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe Periodos para esse Supplier."
                                                            Height="16px" OnSelectedIndexChanged="GridTarifasPeriodo_SelectedIndexChanged"
                                                            OnRowDataBound="GridTarifasPeriodo_RowDataBound"
                                                            Width="94px">
                                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                            <Columns>


                                                                <asp:BoundField DataField="S_merc_periodo_id" HeaderText="ID" ReadOnly="True"
                                                                    SortExpression="S_merc_periodo_id" InsertVisible="False">

                                                                    <FooterStyle CssClass="invisible" />
                                                                    <HeaderStyle CssClass="invisible" />
                                                                    <ItemStyle CssClass="invisible" />
                                                                </asp:BoundField>


                                                                <asp:BoundField DataField="S_merc_periodo_from" HeaderText="From"
                                                                    SortExpression="S_merc_periodo_from" DataFormatString="{0:dd/MM/yy}">
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:BoundField>

                                                                <asp:BoundField DataField="S_merc_periodo_to" HeaderText="To"
                                                                    SortExpression="S_merc_periodo_to" DataFormatString="{0:dd/MM/yy}">
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:BoundField>


                                                                <asp:BoundField DataField="S_mercado_estacao_nome" HeaderText="Estação" SortExpression="S_mercado_estacao_nome">
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:BoundField>

                                                                <asp:BoundField DataField="S_merc_periodo_fdsFrom" HeaderText="Fds From"
                                                                    SortExpression="S_merc_periodo_fdsFrom"
                                                                    DataFormatString="{0:dd/MM/yy}">
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:BoundField>

                                                                <asp:BoundField DataField="S_merc_periodo_fdsTo" HeaderText="Fds To"
                                                                    SortExpression="S_merc_periodo_fdsTo" DataFormatString="{0:dd/MM/yy}">
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:BoundField>

                                                                <asp:BoundField DataField="Pacote_nome" HeaderText="Pacote" SortExpression="Pacote_nome">
                                                                    <HeaderStyle Wrap="True" />
                                                                    <ItemStyle Wrap="True" />
                                                                </asp:BoundField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="btnProvisorio" Height="20"
                                                                            runat="server" ToolTip="Tarifa Provisória" OnClientClick="return confirm('As tarifas para esse período passarão a ser provisórias. Confirma?');"
                                                                            CommandArgument='<%# Eval("S_merc_periodo_id") %>'
                                                                            OnCommand="TarifaProvisoria_Click" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="AddDescrPacote"
                                                                            runat="server" ToolTip="Add Descritivo Pacote"
                                                                            CommandArgument='<%# Eval("S_merc_periodo_id") %>'
                                                                            OnCommand="AbrirPopUpAddDescrPacote" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="VerTarifas"
                                                                            runat="server" ToolTip="Ver Tarifas"
                                                                            CommandArgument='<%# Eval("S_merc_periodo_id") %>'
                                                                            OnCommand="AbrirPopUpVerTarifas" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="AddTarifasGrid"
                                                                            runat="server" ToolTip="Adicionar Tarifas"
                                                                            CommandArgument='<%# Eval("S_merc_periodo_id") %>'
                                                                            OnCommand="AbrirPopUpTarifas"
                                                                            ImageUrl="~/images/Icones/tarifas2.png" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="lnkEditarPeriodo" ToolTip="Editar Periodo"
                                                                            runat="server" ImageUrl="~/images/Icones/edit.png"
                                                                            CommandArgument='<%# Eval("S_merc_periodo_id") %>'
                                                                            OnCommand="AbrirPopUpEditarPeriodo" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="ExluirPeriodosTarifas" ToolTip="Excluir Periodo"
                                                                            runat="server" CommandArgument='<%# Eval("S_merc_periodo_id") %>'
                                                                            OnCommand="ExcluirPeriodosTarifas" OnClientClick="return confirm('Excluindo esse período, todas as tarifas do mesmo também serão excluídas. Confirma?');"
                                                                            ImageUrl="~/images/Icones/delete.png" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                            </Columns>

                                                            <PagerStyle CssClass="pgr"></PagerStyle>

                                                        </asp:GridView>
                                                        <br />

                                                        <div id="TarifasTableContainer"></div>
                                                    </div>

                                                </div>

                                                <div class="GridTarifasPeriodoBlackout">

                                                    <asp:Label ID="lblGridPeriodosBlack" runat="server" Text="Períodos Blackout" />
                                                    <div class="containerGridBlackout">
                                                        <asp:GridView ID="GridTarifasPeriodoBlack" runat="server" AllowPaging="True"
                                                            AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe Periodo Blackout para esse Supplier."
                                                            Height="16px" PageSize="5" OnPageIndexChanging="PaginarDadosPeriodosBlackout"
                                                            Width="36px">
                                                            <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

                                                            <Columns>
                                                                <asp:BoundField DataField="S_merc_periodo_black_id" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="S_merc_periodo_black_id">
                                                                    <FooterStyle CssClass="invisible" />
                                                                    <HeaderStyle CssClass="invisible" />
                                                                    <ItemStyle CssClass="invisible" />
                                                                </asp:BoundField>


                                                                <asp:BoundField DataField="S_merc_periodo_black_from" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Data From" SortExpression="S_merc_periodo_black_from">
                                                                    <HeaderStyle Wrap="False" />
                                                                </asp:BoundField>


                                                                <asp:BoundField DataField="S_merc_periodo_black_to" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Data To" SortExpression="S_merc_periodo_black_to" />

                                                                <asp:BoundField DataField="S_merc_periodo_black_obs" HeaderText="Obs" SortExpression="S_merc_periodo_black_obs"></asp:BoundField>

                                                                <asp:TemplateField HeaderText="">
                                                                    <ItemTemplate>
                                                                        <asp:ImageButton ID="ExluirPeriodosTarifas"
                                                                            runat="server" CommandArgument='<%# Eval("S_merc_periodo_black_id") %>'
                                                                            OnCommand="ExcluirPeriodosTarifasBlackout"
                                                                            ToolTip="Excluir Blackout" ImageUrl="~/images/Icones/delete.png" />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle Wrap="False" />
                                                                    <ItemStyle Wrap="False" />
                                                                </asp:TemplateField>

                                                            </Columns>

                                                            <PagerStyle CssClass="pgr"></PagerStyle>

                                                        </asp:GridView>
                                                    </div>
                                                </div>


                                            </div>


                                            <br />
                                            <br />
                                            <asp:Label ID="lblMsgGridPeriodos" runat="server" Text="" />

                                        </asp:Panel>

                                    </fieldset>

                                </div>
                            </div>

                        </ContentTemplate>
                    </asp:UpdatePanel>

                </div>

                <div id="tabs-2">

                    <asp:UpdatePanel ID="UpdatePanelInfos" runat="server">
                        <ContentTemplate>

                            <div id="Infos">

                                <fieldset id="SetInfos">
                                    <legend>
                                        <h3>Add Infos
                                            <asp:Label ID="lblTituloNomeSupplierInfos" runat="server" Text="" /></h3>
                                    </legend>

                                    <%--<input id="btnShowAddFotoCategoria" class="btnGeralAzul" value="Add Fotos e Categoria" onclick="AbrirPopUp('AddFoto_Categoria.aspx', 'Fotos', '820', '460')" type="button" />--%>
                                    <asp:Button ID="btnShowAddFotoCategoria" runat="server" CssClass="btnGeralAzul" Text="Add Fotos e Categoria" OnClientClick="AbrirPopUp('AddFoto_Categoria.aspx', 'Fotos', '820', '460')" />

                                    <asp:Button ID="btnShowInfoSupplier" runat="server" CssClass="btnGeralAzul" Text="Info Supplier" OnClientClick="OpenInfos('InfoSupplier.aspx')" />
                                    <%--<input id="btnShowInfoSupplier" class="btnGeralAzul" value="Info Supplier" onclick="OpenInfos('InfoSupplier.aspx')" type="button" />--%>

                                    <br />
                                    <br />
                                    <br />

                                    <asp:TabContainer ID="TabContainerInfos" runat="server" Width="950px" Height="400px" ActiveTabIndex="0" BorderWidth="0px" BorderStyle="None">

                                        <asp:TabPanel ID="TabInfoLong" runat="server" HeaderText="Descrição Completa">
                                            <ContentTemplate>

                                                <div class="addInfoLong">

                                                    <cc1:Editor ID="EditorInfoLong" runat="server" NoUnicode="true" />
                                                </div>

                                            </ContentTemplate>
                                        </asp:TabPanel>

                                        <asp:TabPanel ID="TabInfoShort" runat="server" HeaderText="Descrição Curta">
                                            <ContentTemplate>

                                                <div class="addInfoShort">

                                                    <cc1:Editor ID="EditorInfoShort" runat="server" NoUnicode="true" />
                                                </div>

                                            </ContentTemplate>
                                        </asp:TabPanel>

                                        <asp:TabPanel ID="TabOperador" runat="server" HeaderText="Observação">
                                            <ContentTemplate>

                                                <div class="addInfoOperador">
                                                    <asp:Label ID="lblRemarksTXT" runat="server" Text="Remarks" /><br />
                                                    <asp:TextBox ID="txtremarks" runat="server" Height="180px" TextMode="MultiLine"
                                                        Width="430px" />
                                                </div>

                                                <div class="AddInfoCliente">
                                                    <asp:Label ID="lblInfoClienteTXT" runat="server" Text="Infos do Cliente" /><br />
                                                    <asp:TextBox ID="txtInfoCliente" runat="server" Height="180px" TextMode="MultiLine"
                                                        Width="430px" />
                                                </div>

                                                <div class="AddInfoVoucher">
                                                    <asp:Label ID="lblInfoVoucherTXT" runat="server" Text="Infos do Voucher" /><br />
                                                    <asp:TextBox ID="txtInfoVoucher" runat="server" Height="130px" TextMode="MultiLine"
                                                        Width="872px" />
                                                </div>

                                            </ContentTemplate>
                                        </asp:TabPanel>

                                        <asp:TabPanel ID="TabInfoAdicionais" runat="server" HeaderText="Infos Adicionais">
                                            <ContentTemplate>

                                                <div class="tabInfoAdicionais">

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblNumeroRoomsSupplierTXT" runat="server" Text="Num de Rooms:" /><br />
                                                        <asp:TextBox ID="txtNumRoomsSupplier" runat="server" MaxLength="4" Width="50px" />
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblHorarioCheckinSupplier" runat="server" Text="Check In:" /><br />
                                                        <asp:TextBox ID="txtCheckinSupplier" runat="server" MaxLength="20" Width="100px" />
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblHorarioCheckourSupplier" runat="server" Text="Check Out:" /><br />
                                                        <asp:TextBox ID="txtCheckoutSupplier" runat="server" MaxLength="20" Width="100px" />
                                                    </p>

                                                    <p class="paragrafo">
                                                        <asp:Label ID="lblLinkTripAdvisor" runat="server" Text="Link Advisor:" /><br />
                                                        <asp:TextBox ID="txtLinkAdvisorSupplier" runat="server" MaxLength="500" Width="500px" />
                                                    </p>

                                                </div>

                                            </ContentTemplate>
                                        </asp:TabPanel>

                                        <asp:TabPanel ID="TabAmenities" runat="server" HeaderText="Amenities">
                                            <ContentTemplate>
                                                <div class="TabAmenities">
                                                    <asp:TabContainer runat="server" Width="940px" Height="320px" ActiveTabIndex="0" BorderStyle="None" ID="tabContainerAmenities">
                                                        <asp:TabPanel runat="server" ID="tabActivities" HeaderText="Activities">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptActivities" OnItemDataBound="rptActivities_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox runat="server" ToolTip='<%# Eval("Nome") %>' ID="chkActivities" />
                                                                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" ID="TabPanel1" HeaderText="Children Facilities">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptChildrenFacilities" OnItemDataBound="rptChildrenFacilities_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox ID="chkChildrenFacilities" runat="server" ToolTip='<%# Eval("Nome") %>' />
                                                                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" ID="TabPanel2" HeaderText="General">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptGeneral" OnItemDataBound="rptGeneral_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox ID="chkGeneral" runat="server" ToolTip='<%# Eval("Nome") %>' />
                                                                                <asp:Image ID="Image2" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label2" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" ID="TabPanel3" HeaderText="General Information">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptGeneralInformation" OnItemDataBound="rptGeneralInformation_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox ID="chkGeneralInformation" runat="server" ToolTip='<%# Eval("Nome") %>' />
                                                                                <asp:Image ID="Image3" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label3" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" ID="TabPanel4" HeaderText="Internet">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptInternet" OnItemDataBound="rptInternet_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox ID="chkInternet" runat="server" ToolTip='<%# Eval("Nome") %>' />
                                                                                <asp:Image ID="Image4" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label4" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" ID="TabPanel5" HeaderText="Services">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptServices" OnItemDataBound="rptServices_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox ID="chkServices" runat="server" ToolTip='<%# Eval("Nome") %>' />
                                                                                <asp:Image ID="Image5" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label5" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" ID="TabPanel6" HeaderText="Suite">
                                                            <ContentTemplate>
                                                                <div class="divsAmenities">
                                                                    <asp:Repeater runat="server" ID="rptSuite" OnItemDataBound="rptSuite_ItemDataBound">
                                                                        <ItemTemplate>
                                                                            <div class="TabGroupAmenities">
                                                                                <asp:CheckBox ID="chkSuite" runat="server" ToolTip='<%# Eval("Nome") %>' />
                                                                                <asp:Image ID="Image6" runat="server" ImageUrl='<%# Eval("imagem") %>' Height="30" />
                                                                                <asp:Label ID="Label6" runat="server" Text='<%# Eval("Nome") %>'></asp:Label>
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:Repeater>
                                                                </div>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                    </asp:TabContainer>
                                                </div>

                                                <asp:Button runat="server" ID="btnSalvar" Text="Salvar" CssClass="btnGeralAzul" OnClick="btnSalvar_Click" />
                                            </ContentTemplate>
                                        </asp:TabPanel>

                                    </asp:TabContainer>


                                    <div class="btnDescricao">

                                        <asp:Button ID="btnCadastrarDescricao" runat="server" CssClass="btnGeralAzul" Text="Salvar" OnClick="CadastrarDescricao" ValidationGroup="SalvarDescricao" />
                                        <asp:Button ID="btnAtualizarDescricao" runat="server" CssClass="btnGeralAzul" Text="Atualizar" OnClick="AtualizarDescricao" ValidationGroup="SalvarDescricao" />
                                        <asp:Button ID="btnEscluirDescricao" runat="server" CssClass="btnGeralAzul" Text="Excluir" OnClick="ExcluirDescricao" />
                                        <asp:Button ID="btnLimparDescricao" runat="server" CssClass="btnGeralAzul" Text="Limpar" OnClick="LimparDescricao" />
                                        <br />
                                        <asp:Label ID="lblMsgCadDescricao" runat="server" Font-Bold="True" ForeColor="#CC0000"></asp:Label>
                                    </div>

                                </fieldset>

                            </div>

                        </ContentTemplate>
                    </asp:UpdatePanel>

                </div>

                <div id="tabs-3">

                    <asp:UpdatePanel ID="UpdatePanelBases" runat="server">
                        <ContentTemplate>

                            <div id="bases">

                                <fieldset id="SetBases">
                                    <legend>
                                        <h3>Add Bases
                                            <asp:Label ID="lblTituloNomeSupplierBases" runat="server" Text="" /></h3>
                                    </legend>

                                    <div class="bases_filtros">

                                        <div class="bases_filtros_drops">
                                            <asp:Label ID="lblMercadoFiltro_BaseTXT" runat="server" Text="Mercado:" /><br />
                                            <asp:DropDownList ID="ddlMercadoFiltro_Base" AutoPostBack="true" OnSelectedIndexChanged="ddlMercadoFiltro_Base_SelectedIndexChanged" runat="server"></asp:DropDownList>
                                        </div>

                                        <div class="bases_filtros_drops">
                                            <asp:Label ID="lblBaseTarifariaFiltro_BaseTXT" runat="server" Text="Base Tarifária:" /><br />
                                            <asp:DropDownList ID="ddlBaseTarifariaFiltro_Base" AutoPostBack="true" OnSelectedIndexChanged="ddlBaseTarifariaFiltro_Base_SelectedIndexChanged" runat="server"></asp:DropDownList>
                                        </div>

                                        <div class="bases_filtros_drops">
                                            <asp:Label ID="lblTransporteFiltro_BaseTXT" runat="server" Text="Tipo Transporte:"></asp:Label><br />
                                            <asp:DropDownList ID="ddlTipoTransporte" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTipoTransporte_SelectedIndexChanged" />
                                        </div>

                                        <div class="bases_filtros_drops">
                                            <asp:Label ID="lblTipoBase_Base" runat="server" Text="Tipo de Base:" /><br />
                                            <asp:DropDownList ID="ddlTipoBase_Base" AutoPostBack="true" OnSelectedIndexChanged="ddlTipoBase_Base_SelectedIndexChanged" runat="server"></asp:DropDownList>
                                        </div>

                                        <div class="bases_filtros_drops">
                                            <asp:Label ID="lblMoedaFiltro_BaseTXT" runat="server" Text="Moeda:" /><br />
                                            <asp:DropDownList ID="ddlMoedaFiltro_Base" AutoPostBack="true" OnSelectedIndexChanged="ddlMoedaFiltro_Base_SelectedIndexChanged" runat="server"></asp:DropDownList>
                                        </div>

                                    </div>

                                    <div class="bases_addbases">

                                        <div class="bases_addbases_add">
                                            <asp:Label ID="lblDeParaMServicoTXT" runat="server" Text="De-Até:"></asp:Label><br />
                                            <asp:TextBox ID="txtDe" runat="server" Text="" MaxLength="2" Width="20px" />
                                            <asp:TextBox ID="txtAte" runat="server" Text="" MaxLength="2" Width="20px" />
                                            <asp:RegularExpressionValidator ID="ReTxtDe" runat="server" ControlToValidate="txtDe" ErrorMessage="*" ToolTip="Digite somente números." ValidationExpression="\d+" ValidationGroup="SalvarBases"></asp:RegularExpressionValidator>
                                            <asp:RegularExpressionValidator ID="ReTxtAte" runat="server" ControlToValidate="txtAte" ErrorMessage="*" ToolTip="Digite somente números." ValidationExpression="\d+" ValidationGroup="SalvarBases"></asp:RegularExpressionValidator>
                                            <br />
                                            <asp:Button ID="btnNovaBase" runat="server" Text="Salvar" CssClass="btnGeralAzul" OnClick="SalvarBases" ValidationGroup="SalvarBases" />
                                        </div>

                                        <div class="bases_addbases_add">
                                            <asp:Label ID="lblDeParaAutoMServicoTXT" runat="server" Text="De-Até:"></asp:Label><br />
                                            <asp:TextBox ID="txtDeAuto" runat="server" Text="" MaxLength="2" Width="20px" />
                                            <asp:TextBox ID="txtAteAuto" runat="server" Text="" MaxLength="2" Width="20px" />
                                            <asp:RegularExpressionValidator ID="RetxtDeAuto" runat="server" ControlToValidate="txtDeAuto" ErrorMessage="*" ToolTip="Digite somente números." ValidationExpression="\d+" ValidationGroup="SalvarBasesAuto"></asp:RegularExpressionValidator>
                                            <asp:RegularExpressionValidator ID="RetxtAteAuto" runat="server" ControlToValidate="txtAteAuto" ErrorMessage="*" ToolTip="Digite somente números." ValidationExpression="\d+" ValidationGroup="SalvarBasesAuto"></asp:RegularExpressionValidator>
                                            <br />
                                            <asp:Button ID="btnNovaBaseAuto" runat="server" Text="Montar Auto" CssClass="btnGeralAzul" OnClick="SalvarBasesAuto" ValidationGroup="SalvarBasesAuto" />
                                        </div>

                                        <div class="bases_addbases_grid">

                                            <asp:RadioButton ID="rdoBaseOrdem1" Checked="true" GroupName="BaseOrdem" Text="Base Principal" runat="server" />

                                            <asp:GridView ID="GridBases" runat="server" AutoGenerateColumns="False" Height="16px" Width="16px"
                                                GridLines="None" CssClass="mGrid" PagerStyle-CssClass="pgr"
                                                AlternatingRowStyle-CssClass="alt">

                                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

                                                <Columns>

                                                    <asp:BoundField DataField="Base_de" HeaderText="De"
                                                        SortExpression="Base_de" />

                                                    <asp:BoundField DataField="Base_ate" HeaderText="Para"
                                                        SortExpression="Base_ate" />

                                                </Columns>

                                                <PagerStyle CssClass="pgr"></PagerStyle>

                                            </asp:GridView>

                                            <asp:Button ID="btnExcluirBases" runat="server" Text="Excluír" CssClass="btnGeralAzul" OnClick="ExcluirBases"
                                                OnClientClick="return confirm('Excluindo essas bases, todas as tarifas também serão excluídas. Confirma?');" />

                                        </div>

                                        <div class="bases_addbases_grid">

                                            <asp:RadioButton ID="rdoBaseOrdem2" GroupName="BaseOrdem" Text="Base 2" runat="server" />

                                            <asp:GridView ID="GridBases2" runat="server" AutoGenerateColumns="False" Height="16px" Width="16px"
                                                GridLines="None" CssClass="mGrid" PagerStyle-CssClass="pgr"
                                                AlternatingRowStyle-CssClass="alt">

                                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

                                                <Columns>

                                                    <asp:BoundField DataField="Base_de" HeaderText="De"
                                                        SortExpression="Base_de" />

                                                    <asp:BoundField DataField="Base_ate" HeaderText="Para"
                                                        SortExpression="Base_ate" />

                                                </Columns>

                                                <PagerStyle CssClass="pgr"></PagerStyle>

                                            </asp:GridView>

                                            <asp:Button ID="btnExcluirBases2" runat="server" Text="Excluír" CssClass="btnGeralAzul" OnClick="ExcluirBases2"
                                                OnClientClick="return confirm('Excluindo essas bases, todas as tarifas também serão excluídas. Confirma?');" />
                                        </div>

                                        <div class="bases_addbases_grid">

                                            <asp:RadioButton ID="rdoBaseOrdem3" GroupName="BaseOrdem" Text="Base 3" runat="server" />

                                            <asp:GridView ID="GridBases3" runat="server" AutoGenerateColumns="False" Height="16px" Width="16px"
                                                GridLines="None" CssClass="mGrid" PagerStyle-CssClass="pgr"
                                                AlternatingRowStyle-CssClass="alt">

                                                <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

                                                <Columns>

                                                    <asp:BoundField DataField="Base_de" HeaderText="De"
                                                        SortExpression="Base_de" />

                                                    <asp:BoundField DataField="Base_ate" HeaderText="Para"
                                                        SortExpression="Base_ate" />

                                                </Columns>

                                                <PagerStyle CssClass="pgr"></PagerStyle>

                                            </asp:GridView>

                                            <asp:Button ID="btnExcluirBases3" runat="server" Text="Excluír" CssClass="btnGeralAzul" OnClick="ExcluirBases3"
                                                OnClientClick="return confirm('Excluindo essas bases, todas as tarifas também serão excluídas. Confirma?');" />
                                        </div>

                                        <fieldset style="width: auto; height: auto;">
                                            <legend>Bases cadastradas para este supplier</legend>
                                            <div class="resumoBases">

                                                <asp:GridView ID="GridResumoBases" runat="server"
                                                    AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe base para esse Supplier."
                                                    Height="16px"
                                                    Width="16px" PagerStyle-CssClass="pgr"
                                                    AlternatingRowStyle-CssClass="alt">
                                                    <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                                                    <Columns>

                                                        <asp:BoundField DataField="Base_index" HeaderText="Index" />

                                                        <asp:BoundField DataField="Tipo_Base.TipoBase_nome" HeaderText="Tipo">
                                                            <ItemStyle Wrap="False" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="Base_de" HeaderText="De" />

                                                        <asp:BoundField DataField="Base_ate" HeaderText="Até" />

                                                        <asp:BoundField DataField="Tipo_Transporte.TipoTrans_nome" HeaderText="Transporte">
                                                            <ItemStyle Wrap="False" />
                                                        </asp:BoundField>

                                                        <asp:BoundField DataField="Moeda.Moeda_sigla" HeaderText="Moeda" />

                                                        <asp:BoundField DataField="Mercado.Mercado_nome" HeaderText="Mercado" />

                                                        <asp:BoundField DataField="BaseTarifaria.BaseTarifaria_nome" HeaderText="Base Tarifária">

                                                            <HeaderStyle Wrap="False" />
                                                        </asp:BoundField>

                                                    </Columns>
                                                    <PagerStyle CssClass="pgr"></PagerStyle>
                                                </asp:GridView>

                                            </div>
                                        </fieldset>

                                        <asp:Label ID="lblMsgCadBases" Font-Bold="true" Text="" runat="server" />
                                    </div>

                                </fieldset>

                            </div>

                        </ContentTemplate>
                    </asp:UpdatePanel>

                </div>

                <div id="tabs-4">

                    <asp:Panel ID="PanelTarifasNovo" runat="server" Visible="false">

                        <iframe id="IFRAME1" src="AddTarif.aspx" frameborder="0" scrolling="no"
                            border="0" cellspacing="0" style="border-style: none; width: 1250px; height: 1200px; margin-left: 0px;"></iframe>

                    </asp:Panel>

                </div>

                <!-- Área de Pre-Carregamento -->
                <div id="UpdateProgress"
                    style="position: absolute; z-index: 1; left: 50%; top: 50%;">
                    <asp:UpdateProgress ID="preLoading" runat="server"
                        AssociatedUpdatePanelID="">
                        <ProgressTemplate>

                            <asp:Image ID="imgLoading" runat="server"
                                ImageUrl="~/Images/ajax-loaderG.gif" />

                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </div>

            </div>

        </div>

    </form>
</body>
</html>
